package com.atguigu.springcloud.service;

import org.springframework.stereotype.Component;

@Component
public class FallbackServiceHandler implements PaymentHystrixService {
    @Override
    public String paymentTimeout(String id) {
        return  "---------timeout-------- global method-----";
    }

    @Override
    public String paymentOk(String id) {
        return  "---------ok-------- global method-----";
    }
}
